/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.unicamp.ic.sgct.server.dominio.servicos;

import java.io.PrintWriter;
import java.io.StringWriter;

/**
 *
 * @author arthur
 */
public class ExceptionUtil {

    public static String getMsg(Throwable throwable) {
        StringWriter write = new StringWriter();
        throwable.printStackTrace(new PrintWriter(write));
        write.flush();
        String retorno = write.getBuffer().toString();
        return retorno;
    }
}
